python how to make item assignemnt class

40

class Foo:
  def __setitem__(self, key, value):
    return key+value

Comments

Submit
0 Comments